<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery-3.4.1.js"></script>
	</head>
	<body>
		<div class="txt">测试本文1</div>
		<div class="txt">测试本文2</div>
		<div class="txt">测试本文3</div>
		<script>
			$(".txt").eq(1).html("ok");
			$(".txt").get(2).innerHTML="ok";
			$(".txt")[0].innerHTML="ok";
			//$(".txt")[0].html("ok");
			
			$($(".txt").get(2)).html("ok222222");
			$(".txt").eq(1)[0].innerHTML="ok333332222";
		</script>
	</body>
</html>
